package com.ynr.common.utils;

import java.io.File;

public class ExportExcelFile {
    
    public static boolean isFileExist(String filePath) {
        File file = new File(filePath);
        if (file.exists()) {
            return true;
        }
        return false;
    }
   
    public static String generateExcelName(String companyName,String date, String sheetType) {
    	return "/home/excel/sheet/" + companyName + "_" + date + "_" + sheetType + ".xls";
    }
    
    public static void removeFile(String path) {
        File file = new File(path);
        if (file.exists()) {
            file.delete();
        }
    }
    
    public static String getFilePath(String fileName) {
        String path = "/home/sheet/" + fileName;
        return path;
    }
}
